﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>使用eval()函数</title>
</head>
<body>
    <script type="text/javascript">
        eval("x=10;y=20;document.write(x*y)")
        document.write("<br />")
        document.write(eval("2+2"))
        document.write("<br />")
        let x = 10
        document.write(eval(x + 17))
        document.write("<br />")
        eval("alert('Hello world')")
    </script>
</body>
</html>
